Using System 7 Pack with UserLand Frontier™

We provide a glue table for Frontier™ users to simplify access to Sytstem 7 Pack™'s AppleEvents.

To install these commands into Frontier™, simply double-click on the file called "FourthDimension. Frontier". If Frontier™ isn't already running, it will start up. Frontier™ will ask you for the name of the table to import. Accept the default name of 'System.verbs.apps.FourthDimension'.

The following new verbs will be added to Frontier™:

FourthDimension.countFiles()
Returns the number of files in your database.

FourthDimension.countFields(fileno)
Returns the number of fields in the specified file.

FourthDimension.fileName(fileno)
Returns the name of the specified file.

FourthDimension.fieldName(fileno,fieldno)
Returns the name of the specified field.

FourthDimension.currentRecord(fileno)
Returns the current record number in the specified file.

FourthDimension.recordsInSelection(fileno)
Returns the number of records currently selected in the specified file.

FourthDimension.fieldInfo(fileno,fieldno,@table)
Inserts information about the specified field in a table. The following entries will be created:
    ----    Name of the field
  FTYP    a numeric code indicating the field type
          (See 4D®'s Language Reference manual)

FourthDimension.getField(fileno,fieldno)
Returns the contents of the specified field in the current record.

FourthDimension.doScript(command)
Executes almost any 4D® command. In pre-3.0 versions of 4D, don't  execute a command which changes the current record or selection while a record is being displayed in an imput layout or data may be lost.

FourthDimension.buildOutline(@outline)
Builds an outline describing the database structure.

FourthDimension.extractData(fileno,@outline)
Builds an outline containing all data in the specified file.